package com.cucn.ingmall.product.feign;

import com.cucn.common.to.SkuHasStockVO;
import com.cucn.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 库存服务远程调用
 *
 * @author KouChaoJie
 * @since: 2021/12/10 16:22
 */
@FeignClient("ingmall-ware")
public interface WareFeignService {
    /**
     * 判断sku是否有库存
     *
     * @param skuIds skuId集合
     */
    @PostMapping("/ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);
}
